import util from '../utils';

const domain = process.env.mon;
const env = process.env.NODE_ENV === 'development' ? '/api' : domain;
const instance = util.request(env || '');

export function server_systemUser_login<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/systemUser/login',
    opts,
  });
}
// 用户分页列表
export function server_user_list_page<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/list/page',
    opts,
  });
}
// 清空积分
export function server_user_clear_points<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/clear/points',
    opts,
  });
}
// 奖励记录
export function server_user_reward_records_page<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/reward/records/page',
    opts,
  });
}
// 修改奖励系数
export function server_user_update_revenue_rate<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/update/revenue/rate',
    opts,
  });
}
// 质押
export function server_user_pledge<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/pledge',
    opts,
  });
}
// 用户等级
export function server_user_change_user_level<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/change/user/level',
    opts,
  });
}
// 用户伞结构father
export function server_user_umbrella_structure_father<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/umbrella/structure/father',
    opts,
  });
}
// 用户伞结构
export function server_user_umbrella_structure_son<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/umbrella/structure/son',
    opts,
  });
}
// 导出用户列表
export function server_user_list<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/list',
    opts,
  });
}
// 导出用户列表
export function server_user_reward_records<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/reward/records',
    opts,
  });
}
// 更改手机号
export function server_user_update_phone<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/update/phone',
    opts,
  });
}
// 更改GAS
export function server_user_gas<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/user/gas',
    opts,
  });
}
